import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './plugins/element.js'
import './assets/css/common.css'
import { initProject } from "./utils/init"
import "./utils/eventbus"
initProject();  // 初始化

Vue.config.productionTip = false
Vue.use(ElementUI);

// const originalPush = router.replace;
// router.replace = function replace(location) {
//     return originalPush.call(this, location).catch(err => err)
// };

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
